//-----------------------------------------------------------------------
//<copyright file="ChiTietPhieuNhap.cs" company="MinhSong">
//Copyright (c) MinhSong. All rights reserved.
//</copyright>
//-----------------------------------------------------------------------
using System;
using System.Runtime.Serialization;

namespace PMS.Entity
{
	public class ChiTietPhieuNhap: LuuKho
	{
		#region Variable Declarations

		private string m_MaCTPN;
		private string m_SoPN;
		private int m_DonGia;
		private int m_SoLuong;

		#endregion

		#region Constructors

		public ChiTietPhieuNhap() {}
		public ChiTietPhieuNhap(
			string maCTPN,
			string soPN,
			int maLuuKho,
			int donGia,
			int soLuong)
		{
			m_MaCTPN = maCTPN;
			m_SoPN = soPN;
			base.MaLuuKho = maLuuKho;
			m_DonGia = donGia;
			m_SoLuong = soLuong;
		}

		#endregion

		#region Properties

		/// <summary>
		///
		/// </summary>
		///<value>This type is string</value>
		[DataMember]
		public string MaCTPN
		{
			get { return m_MaCTPN; }
			set { m_MaCTPN = value;
				OnPropertyChanged("MaCTPN");
		}
		}

		/// <summary>
		///
		/// </summary>
		///<value>This type is string</value>
		[DataMember]
		public string SoPN
		{
			get { return m_SoPN; }
			set { m_SoPN = value;
				OnPropertyChanged("SoPN");
		}
		}


		/// <summary>
		///
		/// </summary>
		///<value>This type is int</value>
		[DataMember]
		public int DonGia
		{
			get { return m_DonGia; }
			set { m_DonGia = value;
				OnPropertyChanged("DonGia");
		}
		}

		/// <summary>
		///
		/// </summary>
		///<value>This type is int</value>
		[DataMember]
		public int SoLuong
		{
			get { return m_SoLuong; }
			set { m_SoLuong = value;
				OnPropertyChanged("SoLuong");
		}
		}

        /// <summary>
        ///
        /// </summary>
        ///<value>This type is string</value>
        [DataMember]
        public decimal Total
        {
            get { return (SoLuong * DonGia); }
        }
		#endregion
	}
}//End Class
